
import axios from '@/libs/api.request'
// 首页考试列表
export function indexExam (obj) {
    return axios.request({
        url: '/examManage/indexExam',
        params: obj,
        method: 'get'
    })
}
// 开始考试
export function startExam (obj) {
    return axios.request({
        url: '/examManage/startExam',
        params: obj,
        method: 'get'
    })
}
// 交卷
export function commitExam (data) {
    return axios.request({
        url: '/examManage/commitExam',
        data: data,
        method: 'post'
    })
}
// 保存试卷
export function saveExam (data) {
    return axios.request({
        url: '/examManage/saveExam',
        data: data,
        method: 'post'
    })
}
// 查看考试
export function viewExam (obj) {
    return axios.request({
        url: '/examManage/viewPaper',
        params: obj,
        method: 'get'
    })
}
// 首页综合成绩
export function stuGrade (obj) {
    return axios.request({
        url: '/gradeManage/stuGrade',
        params: obj,
        method: 'get'
    })
}
// 首页实训列表
export function trainList (data) {
    return axios.request({
        url: '/practicalTraining/list',
        data: data,
        method: 'post'
    })
}
// 更多考试
export function moreExam1 (data) {
    return axios.request({
        url: '/examManage/moreExamList',
        data: data,
        method: 'post'
    })
}
// 保存批阅
export function saveMarkExam (data) {
    return axios.request({
        url: '/examManage/saveMarkExam',
        data: data,
        method: 'post'
    })
}
// 批阅下一个
export function markNext (obj) {
    return axios.request({
        url: '/examManage/markNext',
        params: obj,
        method: 'get'
    })
}
// qp列表
export function QpList (data) {
    return axios.request({
        url: '/answerManage/QpList',
        data: data,
        method: 'post'
    })
}
// 开始重做qp练习
export function startQp (obj) {
    return axios.request({
        url: '/answerManage/startQp',
        params: obj,
        method: 'get'
    })
}
// qp保存
export function saveQp (data) {
    return axios.request({
        url: '/answerManage/saveQp',
        data: data,
        method: 'post'
    })
}
// qp交卷
export function commitQp (data) {
    return axios.request({
        url: '/answerManage/commitQp',
        data: data,
        method: 'post'
    })
}
// 学生考试成绩
export const examGradeList = (data) => {
    return axios.request({
        url: '/gradeManage/examGrade',
        data: data,
        method: 'post'
    })
}

// 学生考试成绩
export const trainGradeList = (data) => {
    return axios.request({
        url: '/gradeManage/trainingGrade',
        data: data,
        method: 'post'
    })
}
